package com.smooth.sys.site.modules.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

import com.smooth.common.site.dao.bean.AjDict;
import com.smooth.common.site.dao.mapper.GxDictMapper;

@Component
public class GDictService {
	@Autowired
	GxDictMapper gxDictMapper;
	@Cacheable(value = "dict", key = "#root.targetClass+#root.methodName" + "+#root.args")
	public List<AjDict> findTypeList(String type){
		return gxDictMapper.queryDictByType(type);
	}
}
